package com.lanbu.system.mapper;

import com.lanbu.system.domain.mongo.MongoTeamMembers;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MongoTeamMembersRepository extends MongoRepository<MongoTeamMembers, ObjectId> {
    // 你可以在这里定义自定义查询方法
    MongoTeamMembers findByUserId(ObjectId userId);

    List<MongoTeamMembers> findByTeamId(Object teamId);

    List<MongoTeamMembers> findByUserIdIn(List<ObjectId> userIds);
}
